/**
 * 로그인 로그아웃 처리
 */

function titleInit() {
	var btnLogin;
	var btnLogout;
	
	btnLogin = document.getElementById("login");
	btnLogout = document.getElementById("logout");
	btnGoLogin = document.getElementById("gologin");
	
	btnGoSignUp = document.getElementById("signup");
	
	if(btnGoSignUp != null){
		btnGoSignUp.onclick = function() {
			location.href = "";
		}
	}
	if(btnGoLogin != null){
		btnGoLogin.onclick = function() {
			location.href = "./login.jsp";
		}
	}
	
	if(btnLogin != null){
		btnLogin.onclick = function() {
			var loginfrm = document.loginfrm;
			if(loginfrm.mid.value == "" || loginfrm.pwd.value == ""){
				alert("아디 비번 쳐");
			}
			else{
				loginfrm.submit();
			}
			
			location.href = "./login.jsp";
		}
	}
	if(btnLogout != null){
		btnLogout.onclick = function() {
			location.href = "../Member/logout.jsp";
		}
	}
}